<h3>在用设备列表</h3>

<table class="table table-bordered">
  <thead>
    <tr>
      <th>IP</th>
      <!--
      <th>Os type</th>
      -->
      <th>系统名称</th>
      <th>系统位数</th>
      <th>浏览器</th>
      <th>浏览器位数</th>
      <th>负责人</th>
      <th>用途描述</th>
      <!--
      <th>Remark</th>
      -->
      <th colspan="3">管理</th>
    </tr>
  </thead>

  <tbody>
    <% @devices.each do |device| %>
      <tr class="<%= cycle('info', '') %>">
        <td><%= device.ip %></td>
        <!--
        <td><%= device.os_type %></td>
        -->
        <td><%= device.os_name %></td>
        <td><%= device.os_bit %></td>
        <td><%= device.browser_version %></td>
        <td><%= device.browser_bit %></td>
        <td><%= device.owner %></td>
        <td><%= device.description %></td>
        <!--
        <td><%= device.remark %></td>
        -->
        <td><%= link_to '查看详细', device %></td>
        <td><%= link_to '编辑', edit_device_path(device) %></td>
        <td><%= link_to '删除', device, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>
<p><%= will_paginate @devices %></p>
<br>


<%= link_to '设备申请', devices_require_path, {class: 'btn btn-primary'} %>
